package ead;

/**
 * 
 * @author YvensDesktop
 *
 * @param <E> valor do objeto contido no Node
 */
public class Node <E>{

	private Node<E> next;
	private Node<E> previous;
	private E value;
	
	public Node(E value){
		this(null, value, null);
	}
	
	public Node(Node<E> next, E value, Node<E> previous){
		this.next = next;
		this.value = value;
		this.previous = previous;
	}

	public Node<E> getNext() {
		return next;
	}

	public void setNext(Node<E> next) {
		this.next = next;
	}

	public Node<E> getPrevious() {
		return previous;
	}

	public void setPrevious(Node<E> previous) {
		this.previous = previous;
	}

	public E getValue() {
		return value;
	}

	public void setValue(E value) {
		this.value = value;
	}
	
}
